package behavioral.strategy;

/**
 * @Description: 测试类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class StrategyTest {
    public static void main(String[] args) {
        Context context = new Context();

        context.setStrategy(new BicycleStrategy());
        context.doStart();

        context.setStrategy(new SubwayStrategy());
        context.doStart();

        context.setStrategy(new CarStrategy());
        context.doStart();
    }
}
